<?php get_header(); ?>
<!-- 页面主体开始-->
<div class="am-g am-g-fixed blog">
	<div class="title">
		<h3>产品中心</h3>
	</div>
	<div class="product_cont">
		<ul class="items am-u-g">
		    <?php if ( have_posts() ) : ?>
		        <?php while ( have_posts() ) : the_post(); ?>
					<li class="am-u-md-3">
						<a href="<?php $buy_link = get_post_meta($post->ID, "buy_link",true);if($buy_link){echo $buy_link;}else{the_permalink();}?>" target="_blank	"><?php the_post_thumbnail('post-thumbnail-220-153'); ?></a>
						<p class="title"><?php the_title(); ?></p>
						<p class="info am-u-g"><span class="price am-u-md-6">RMB:<?php echo get_post_meta($post->ID, "price",true);?></span><span class="norms am-u-md-6"><?php echo get_post_meta($post->ID, "norms",true);?></span></p>
					</li>
		        <?php endwhile; ?>
		    <?php endif; ?>
	    </ul>
	    <!-- 分页 -->
	    <div class="page_navi">
	        <?php par_pagenavi(); ?>
	    </div> 
	    <!-- 分页结束 -->
	</div>
</div>
<!-- 页面主体结束-->
<?php get_footer(); ?>